﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000D9 RID: 217
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AvatarSync : IMessage<AvatarSync>, IMessage, IEquatable<AvatarSync>, IDeepCloneable<AvatarSync>, IBufferMessage
	{
		// Token: 0x170002EF RID: 751
		// (get) Token: 0x06000A09 RID: 2569 RVA: 0x0001E010 File Offset: 0x0001C210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AvatarSync> Parser
		{
			get
			{
				return AvatarSync._parser;
			}
		}

		// Token: 0x170002F0 RID: 752
		// (get) Token: 0x06000A0A RID: 2570 RVA: 0x0001E017 File Offset: 0x0001C217
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AvatarSyncReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170002F1 RID: 753
		// (get) Token: 0x06000A0B RID: 2571 RVA: 0x0001E029 File Offset: 0x0001C229
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AvatarSync.Descriptor;
			}
		}

		// Token: 0x06000A0C RID: 2572 RVA: 0x0001E030 File Offset: 0x0001C230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarSync()
		{
		}

		// Token: 0x06000A0D RID: 2573 RVA: 0x0001E043 File Offset: 0x0001C243
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarSync(AvatarSync other) : this()
		{
			this.avatarList_ = other.avatarList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000A0E RID: 2574 RVA: 0x0001E06D File Offset: 0x0001C26D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarSync Clone()
		{
			return new AvatarSync(this);
		}

		// Token: 0x170002F2 RID: 754
		// (get) Token: 0x06000A0F RID: 2575 RVA: 0x0001E075 File Offset: 0x0001C275
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Avatar> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x06000A10 RID: 2576 RVA: 0x0001E07D File Offset: 0x0001C27D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AvatarSync);
		}

		// Token: 0x06000A11 RID: 2577 RVA: 0x0001E08B File Offset: 0x0001C28B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AvatarSync other)
		{
			return other != null && (other == this || (this.avatarList_.Equals(other.avatarList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000A12 RID: 2578 RVA: 0x0001E0C0 File Offset: 0x0001C2C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.avatarList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000A13 RID: 2579 RVA: 0x0001E0F4 File Offset: 0x0001C2F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000A14 RID: 2580 RVA: 0x0001E0FC File Offset: 0x0001C2FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000A15 RID: 2581 RVA: 0x0001E105 File Offset: 0x0001C305
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.avatarList_.WriteTo(ref output, AvatarSync._repeated_avatarList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000A16 RID: 2582 RVA: 0x0001E12C File Offset: 0x0001C32C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.avatarList_.CalculateSize(AvatarSync._repeated_avatarList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000A17 RID: 2583 RVA: 0x0001E165 File Offset: 0x0001C365
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AvatarSync other)
		{
			if (other == null)
			{
				return;
			}
			this.avatarList_.Add(other.avatarList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000A18 RID: 2584 RVA: 0x0001E193 File Offset: 0x0001C393
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000A19 RID: 2585 RVA: 0x0001E19C File Offset: 0x0001C39C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 82U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.avatarList_.AddEntriesFrom(ref input, AvatarSync._repeated_avatarList_codec);
				}
			}
		}

		// Token: 0x0400040A RID: 1034
		private static readonly MessageParser<AvatarSync> _parser = new MessageParser<AvatarSync>(() => new AvatarSync());

		// Token: 0x0400040B RID: 1035
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400040C RID: 1036
		public const int AvatarListFieldNumber = 10;

		// Token: 0x0400040D RID: 1037
		private static readonly FieldCodec<Avatar> _repeated_avatarList_codec = FieldCodec.ForMessage<Avatar>(82U, Avatar.Parser);

		// Token: 0x0400040E RID: 1038
		private readonly RepeatedField<Avatar> avatarList_ = new RepeatedField<Avatar>();
	}
}
